/**
 * *****************************************************************
 * @file    TF_Config.h
 * @author  Jack(jackg@andartechs.com.cn)
 * @version 1.0.0
 * @date    2022-02-10
 * @brief   
 *                 Copyright (c) 2022, Andar Technologies Inc.
 *                           www.andartechs.com 
 *
 * *****************************************************************
 */
#ifndef TF_CONFIG_H
#define TF_CONFIG_H

#include <stdint.h>
#include <stdio.h>

#define TF_ID_BYTES     2
#define TF_LEN_BYTES    2
#define TF_TYPE_BYTES   2
#define TF_CKSUM_TYPE TF_CKSUM_XOR
#define TF_USE_SOF_BYTE 1
#define TF_SOF_BYTE     0x01
typedef uint16_t TF_TICKS;
typedef uint8_t TF_COUNT;
#define TF_MAX_PAYLOAD_RX 128
#define TF_SENDBUF_LEN 2048
#define TF_MAX_ID_LST   10
#define TF_MAX_TYPE_LST 10
#define TF_MAX_GEN_LST  5
#define TF_PARSER_TIMEOUT_TICKS 10
#define TF_Error(format, ...) printf("[TF] " format "\n", ##__VA_ARGS__)

#endif //TF_CONFIG_H

